﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ProductDetailControl.ascx.vb" Inherits="LinhKienMayTinh.ProductDetailControl" %>
<%
    If IsNothing(DataSource) = False AndAlso DataSource.Tables(0).Rows.Count > 0 Then    
%>      
<div class="product-detail">
    <div class="product-name">
        <span><asp:Label ID="lbName" runat="server"></asp:Label></span>
    </div>
    <div class="product-image">        
        <asp:Image ID="imgImage" runat="server"/>
    </div>
    <div class="product-info">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td class="mylabel">Giá:</td>
                <td class="content"><asp:Label ID="lbPrice" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td class="mylabel">Tình trạng:</td>
                <td class="content"><asp:Label ID="lbCondition" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td class="mylabel" style="border-bottom: 1px solid #DDDDDD;">Bảo hành:</td>
                <td class="content" style="border-bottom: 1px solid #DDDDDD;"><asp:Label ID="lbWarranty" runat="server"></asp:Label></td>
            </tr>
        </table>
    </div>    
    <div class="product-specification">
        <div class="mylabel">
            <span>Thông số kỹ thuật</span>
        </div>
        <div class="content">
            <asp:Literal id="ltSpec" runat="server"></asp:Literal>
        </div>
    </div>
    <div class="product-description">
        <div class="mylabel">
            <span>Hình ảnh</span>
        </div>
        <div class="content">
            <asp:Literal id="ltDescription" runat="server"></asp:Literal>
        </div>
    </div>
</div>
<%Else%>
<div class="product-detail">
    <h3>Sản phẩm không tồn tại.</h3>
</div>
<%End If%>